
import { createStore } from 'vuex';

export default createStore({
    state: {
        isSidebarCollapsed: false,
    },
    mutations: {
        TOGGLE_SIDEBAR(state) {
            state.isSidebarCollapsed = !state.isSidebarCollapsed;
        },
    },
    actions: {
        toggleSidebar({ commit }) {
            commit('TOGGLE_SIDEBAR');
        },
    },
});
